POV-Ray : Newsgroups : povray.binaries.images : SCC4 wips : SCC4 wips Server Time
5 Nov 2024 10:19:23 EST (-0500)
  SCC4 wips  
From: Tek
Date: 4 Oct 2006 22:39:06
Message: <4524704a@news.povray.org>
Hi folks,

I've been off the groups for a few months on account of my PC being on a 
boat crossing the atlantic (moved back home to England). But anyway, here's 
some stuff I've been working on this week for Paul Bourke's next short code 
contest (as mentioned on pov.general and his website: 
http://local.wasp.uwa.edu.au/~pbourke/rendering/scc4/ )

The dawn scene is basically finished, and it's entire source code is:

#local 
p=function{pattern{granite}}isosurface{function{y-.3+p(x/10,9,z/10)}contained_by{box{-9,9}}}light_source{<3,.5,8>,1}media{scattering{2,<3,2,1>/9}emission<.3,.4,1>density{function{.1/(y+1)}}}sphere{0,1pigment{granite

poly_wave 4}scale-7*y+9hollow}


The grassy scene's currently a bit too long, and has a boring sky:

light_source{99,.8-z/2}background{<.7,.8,.9>}#macro 
R(V)vturbulence(2,.5,6,V)#end#local i=0;#while(i<16384)#local 
p=mod(i,128)*(z-x)+(z+x)*i/128;#local 
p=p+R(p/70)*20;cone{p-5*y,.2,p+R(p/9)*5-3*x/*+2*z*/,0pigment{rgb 
y*2+z}}sphere{p-y*9,4pigment{rgb.9+z}}#local i=i+1;#end

Any suggestions on how I can make those a few bytes shorter?
-- 
Tek
http://evilsuperbrain.com


Post a reply to this message


Attachments:
Download 'dawn.jpg' (27 KB) Download 'grassy.jpg' (159 KB)

Preview of image 'dawn.jpg'
dawn.jpg

Preview of image 'grassy.jpg'
grassy.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.